package com.meilai.project.entity.business.installOrder;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.dto.workflow.FlowBusinessDataSuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 工人提交
 * </p>
 *
 * @author 张驰
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("worker_submit")
@ApiModel(value="WorkerSubmit对象", description="工人提交")
public class WorkerSubmit extends FlowBusinessDataSuperEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "点位id")
    private Long media_point_id;

    @ApiModelProperty(value = "点位编号")
    private String code;

    @ApiModelProperty(value = "媒体类型id")
    private Long media_type_id;

    @ApiModelProperty(value = "工单id")
    private Long work_order_id;

    @ApiModelProperty(value = "工单类型")
    private Integer install_type;

    @ApiModelProperty(value = "楼层类型：1、多层2、高层")
    private Integer building_type;

    @ApiModelProperty(value = "楼盘id")
    private Long building_area_id;

    @ApiModelProperty(value = "楼号")
    private String building_number;

    @ApiModelProperty(value = "单元号")
    private String unit_number;

    @ApiModelProperty(value = "层数")
    private String floor;

    @ApiModelProperty(value = "门号")
    private String door_number;

    @ApiModelProperty(value = "提交工人id")
    private Long worker_id;

    @ApiModelProperty(value = "故障类型，0：未故障；1：发现故障")
    private Integer breakdown_type;

    @ApiModelProperty(value = "是否已转为维修工单，0：未转，>0：转的维修工单id")
    private Long has_to_repair_order_id;

    @ApiModelProperty(value = "尺寸_长")
    private String size_length;

    @ApiModelProperty(value = "尺寸_宽")
    private String size_width;

    @ApiModelProperty(value = "尺寸_高")
    private String size_height;

    @ApiModelProperty(value = "内部_尺寸_长")
    private String size_length_inside;

    @ApiModelProperty(value = "内部_尺寸_宽")
    private String size_width_inside;

    @ApiModelProperty(value = "内部_尺寸_高")
    private String size_height_inside;

    @ApiModelProperty(value = "ab面id")
    private Long ab_type_id;

    @ApiModelProperty(value = "画面属性id")
    private Long pic_type_id;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "位置")
    private String location;

    @ApiModelProperty(value = "是否亮灯，0：不亮；1：亮灯")
    private Integer is_light;

    @ApiModelProperty(value = "是否新安装，0：否；1：是")
    private Integer first_install;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "保存时间")
    private LocalDateTime saved_at;

    @ApiModelProperty(value = "故障类型IDs")
    private String breakdown_ids;
}
